<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const arrContent = new Array(100).fill('').map((v, i) => i + 1)
        class ClassSlice {
            constructor(arr) {
                this.arr = arr;
                this.i = 0;
            }

            useIt() {
                const arr = this.arr.slice(this.i, this.i + 3)
                this.i += 3;
                return arr;
            }
        }
        const clSlice = new ClassSlice(arrContent)
        console.log(clSlice.useIt(), '--')
        console.log(clSlice.useIt(), '--')
        console.log(clSlice.useIt(), '--')

    </script>
</body>

</html>